#include <catch2/catch.hpp>

#include "solution.hpp"

using namespace solution_295;

TEST_CASE("295. Find Median from Data Stream", "[295]") {

SECTION("example 1") {
      MedianFinder finder;
      finder.addNum(1);
      finder.addNum(2);
      CHECK(finder.findMedian() == 1.5);
      finder.addNum(3);
      CHECK(finder.findMedian() == 2.0);
}

}
